<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes lefttoright {
            0% {
                transform: translate(0px);
            }
            100% {
                transform: translate(1000px);
            }
        }
        div {
            width: 100px;
            height: 100px;
            background-color: pink;
            animation-name: lefttoright;
            animation-duration: 5s;
        }
    </style>
</head>
<body>
    <div>请看动画</div>
</body>
</html>